/**
 * 作者: hxw
 * 日期: 2021-06-08 14:44:29
 * 备注: adjust事件码
 */
package com.motu.vertx.module.utility.logsdk;

import io.vertx.core.json.JsonObject;

public class AdjustCodeModel {
    protected int id; // ID
    protected int type; // 类型
    protected int param; // 参数
    protected String iosCode; // ios识别码
    protected String androidCode; // 安卓识别码

    public AdjustCodeModel() {
    }

    public AdjustCodeModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        type = obj.containsKey("type") ? obj.getInteger("type") : 0;
        param = obj.containsKey("param") ? obj.getInteger("param") : 0;
        iosCode = obj.containsKey("ios_code") ? obj.getString("ios_code") : "";
        androidCode = obj.containsKey("android_code") ? obj.getString("android_code") : "";
    }

    public int getId() {
        return id;
    }

    public int getType() {
        return type;
    }

    public int getParam() {
        return param;
    }

    public String getIosCode() {
        return iosCode;
    }

    public String getAndroidCode() {
        return androidCode;
    }

}
